package bus_srv

import (
	"gluenet/modules/manager/apiserver/bus-srv/strategy"
	"gluenet/pkg/apis"
	"gluenet/utils/rpc/labels"
	"strings"
)

var routers = []struct {
	topic   string
	handler apis.Handler
}{
	//{topic: strings.Join([]string{labels.ControlManager, apis.HeartBeat}, ":"), handler: HeartBeatNew},

	{topic: strings.Join([]string{labels.ControlManager, apis.GuidRegister}, ":"), handler: GuidRegisterNew},

	{topic: strings.Join([]string{labels.ControlManager, apis.StrategyQueryInstanceAgent}, ":"), handler: strategy.GetInstanceAgentInfo},

	{topic: strings.Join([]string{labels.ControlManager, apis.ApplicationReport}, ":"), handler: InstanceReport},
}
